package org.montecristo.posmobile.scannerbarcode;

public class IntentResult {

	private final String contents;
	  private final String formatName,errorCorrectionLevel;
	  private final byte[] rawBytes;
	  private final Integer orientation;
	 
	  public IntentResult() {
		  this.contents = null;
		    this.formatName = null;
		    this.rawBytes=null;
		    this.orientation=null;
		    this.errorCorrectionLevel=null;
	}
	  IntentResult(String contents, String formatName, byte[] rawBytes , Integer orientation,String errorCorrectionLevel) {
	    this.contents = contents;
	    this.formatName = formatName;
	    this.rawBytes=rawBytes;
	    this.orientation=orientation;
	    this.errorCorrectionLevel=errorCorrectionLevel;
	  }

	  /**
	   *@return raw content of barcode
	   */
	  public String getContents() {
	    return contents;
	  }

	  /**
	   *@return name of format, like "QR_CODE", "UPC_A". See <code>BarcodeFormat</code> for more format names.
	   */
	  public String getFormatName() {
	    return formatName;
	  }
	
}
